<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::namespace('Admin')->group(function (){
    Route::any('/', function () {
        return view('login');
    });
    Route::any('welcome', function () {
        return view('welcome');
    });
    Route::any('/login',"AdminController@adminLogin");//登录

});

Route::namespace('Admin')->middleware("sessionCheck")->group(function (){

    Route::any('logout','AdminController@adminLogout');//注销
    Route::any('index','AdminController@index');//主页

    Route::any('getCertificateList','CertificateController@getCertificateList');//获取凭证列表
    Route::any('doAddCertificate','CertificateController@doAddCertificate');//执行添加凭证
    Route::any('addCertificate','CertificateController@addCertificate');//添加凭证
    Route::any('verifyCertificate','CertificateController@verifyCertificate');//审核凭证
    Route::any('getVerifyCertificate','CertificateController@getVerifyCertificate');
    Route::any('getVerifyCertificateList','CertificateController@getVerifyCertificateList');//获取未审核凭证

    Route::any('getWareHouseList','WareHouseController@getWareHouseList');//获取仓库物品列表
    Route::any('getWareHouseInList','WareHouseController@getWareHouseInList');//获取入科列表
    Route::any('verifyWareHouseIn','WareHouseController@verifyWareHouseIn');//入库审核
    Route::any('wareHouseIn','WareHouseController@wareHouseIn');//入库
    Route::any('wareHouseOut','WareHouseController@wareHouseOut');//出库
    Route::any('addWareHouse','WareHouseController@addWareHouse');//添加物品
    Route::any('doAddWareHouse','WareHouseController@doAddWareHouse');//执行添加物品
    Route::any('getWareHouseOutList','WareHouseController@getWareHouseOutList');//出库列表
    Route::any('verifyWareHouseOut','WareHouseController@verifyWareHouseOut');//出库审核


    Route::any('getVipList','VipController@getVipList');//获取会员列表
    Route::any('getVipInfo','VipController@getVipInfo');//获取会员详细信息
    Route::any('addVip','VipController@addVip');//添加会员
    Route::any('doAddVip','VipController@doAddVip');//执行添加会员
    Route::any('updateVip','VipController@updateVip');//修改会员
    Route::any('doUpdateVip','VipController@doUpdateVip');//执行修改会员
    Route::any('deleteVip','VipController@deleteVip');//删除会员
    Route::any('getDeleteVip','VipController@getDeleteVip');//获取删除会员
    Route::any('recoveryVip','VipController@recoveryVip');//恢复已经删除会员
    Route::any('getClassList','VipController@getClassList');//获取等级列表
    Route::any('updateClass','VipController@updateClass');//修改等级
    Route::any('addClass','VipController@addClass');//添加等级
    Route::any('doAddClass','VipController@doAddClass');//执行添加等级
    Route::any('doUpdateClass','VipController@doUpdateClass');//执行修改等级
    Route::any('deleteClass','VipController@deleteClass');//删除等级



    Route::any('getAdminList','AdminController@getAdminList');//获取管理员列表
    Route::any('deleteAdmin','AdminController@deleteAdmin');//删除管理员
    Route::any('updateAdmin','AdminController@updateAdmin');//修改管理员
    Route::any('doUpdateAdmin','AdminController@doUpdateAdmin');//执行修改管理员
    Route::any('addAdmin','AdminController@addAdmin');//添加管理员
    Route::any('doAddAdmin','AdminController@doAddAdmin');//执行添加管理员
    Route::any('getSystemInfo','AdminController@getSystemInfo');//获取系统主页

});